/*

Author   : chaos

FileName : declaration.cpp

Date     : 17/08/17 01:30:30

*/
#include <iostream>
using namespace std;

namespace John
{
    int age = 35;

    void Hello(){ cout << "Hello namespace John !" << endl; }

    class Printer
    {
        public:
            void Hello()
            {
                cout << "Hello C++ !" << endl;
            }
    };
}

int age = 30;



int main(int argc ,char *argv[])
{
    namespace J = John;

    using John::age;
    using John::Hello;
    using J::Printer;

    Printer prn1;

    cout << "age = " << age << endl;
    Hello();
    prn1.Hello();

    return 0;
}
